package com.myastro.opengles;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.myastro.HelperFunction;
import com.myastro.main.ListMainActivity;

public class IPhone3D_Programming extends ListMainActivity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		
	}
	
	
	@Override
	protected void onDestroy() {		
		super.onDestroy();
		
	}
	
	public void doUpdateList() {
		
		/* make the title text */
		makeTitle("OpenGL.ES.DEMO");
		
		addListItem("SimpleWireframe", 
				"iPhone3D.Programming", 
				GLRendererActivity.class,
				HelperFunction.REQUEST_IPHONE3D_SIMPLEWIREFRAME);
		
		addListItem("VertexLighting",
				"iPhone3D.Programming",
				GLRendererActivity.class,
				HelperFunction.REQUEST_IPHONE3D_VERTEXLIGHTING);
		
//		addListItem("FancyWireframe",
//				"iPhone3D.Programming",
//				GLRendererActivity.class,
//				HelperFunction.REQUEST_IPHONE3D_FANCYWIREFRAME);
//		
//		addListItem("ObjViewer",
//				"iPhone3D.Programming",
//				GLRendererActivity.class,
//				HelperFunction.REQUEST_IPHONE3D_OBJVIEWER);
		
		addListItem("Incomming...", "iPhone3D.Programming", null, 0);
		
	}
	
	public void onActivityResult(int requestCode, int resultCode, Intent data) {
		super.onActivityResult(requestCode, resultCode, data);
		// nothing...
		
		if (resultCode == Activity.RESULT_OK) {
			
		}
	}
}
